Merged
Conversation
|
@Otaiki1 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR closes #143
This PR closes #148
This PR closes #111
This PR closes #131
Final Summary of Integration
Backend Services & API:
AnalyticsService: Implemented logic to fetch and normalize subscription costs into a monthly spend, compute category-based percentages, and project six-month historical trends.
Budget Management: Added methods for fetching and updating budget limits (
upsertBudget
) in the database.
Real-time Monitoring: Integrated budget threshold checks into
SubscriptionService
's
create
,
update
, and
delete
methods.
Notification System:
RiskNotificationService: Automated alerts are now triggered for high-risk renewals (e.g., failed past attempts, low balances).
Budget Alerts: Users will now receive in-app notifications when their spending reaches 80% or 100% of their monthy limit.
Schema: Created the notifications table to centralize all platform alerts.
Frontend Dashboard:
Dashboard Widget: Added a dynamic "Budget Overview" widget featuring a color-coded progress bar (Green/Yellow/Red) and percentage-based usage feedback.
Analytics Page: Refactored the full page to visualize month-over-month trends using Recharts and detailed per-category spending breakdowns.
Settings Sync: Linked the "Monthly Budget Limit" in Settings to provide real-time updates and persistence.
Technical Refactoring:
Fixed a critical syntax error in
client/package.json
that was blocking script execution.
Corrected the Supabase client initialization in the analyticsApi.
Simplified and restored logic flow in
subscription-service.ts
after addressing syntax errors.